<%@ Control Language="C#" AutoEventWireup="true" CodeFile="CustomerChangePassword.ascx.cs"
    Inherits="Tathata.Web.Modules.Account.CustomerChangePasswordControl" %>
<div class="main">
    <table cellspacing="0" cellpadding="0" border="0" runat="server" id="pnlChangePasswordError">
        <tbody>
            <tr>
                <td colspan="2" class="messageError">
                    <b>
                        <asp:Literal ID="lChangePasswordErrorMessage" runat="server" EnableViewState="False"></asp:Literal>
                    </b>
                </td>
            </tr>
        </tbody>
    </table>
    <table cellspacing="0" cellpadding="0" border="0">
        <tbody>
            <tr>
                <td>
                    <img height="10" width="100%" border="0" src="<%=Page.ResolveUrl("~/images/trans.gif")%>" />
                </td>
            </tr>
        </tbody>
    </table>
    <table cellspacing="0" cellpadding="0" class="blockBordered">
        <tbody>
            <tr>
                <td>
                    <table cellspacing="2" cellpadding="2" border="0">
                        <tbody>
                            <tr>
                                <td>
                                    <%=GetLocaleResourceString("Account.OldPassword")%>:
                                </td>
                                <td>
                                    <asp:TextBox ID="txtOldPassword" runat="server" MaxLength="50" TextMode="Password"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="rfvOldPassword" runat="server" ControlToValidate="txtOldPassword"
                                        ErrorMessage="Old password is required." ToolTip="Old password is required."
                                        ValidationGroup="ChangePassword" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <%=GetLocaleResourceString("Account.NewPassword")%>:
                                </td>
                                <td>
                                    <asp:TextBox ID="txtNewPassword" runat="server" MaxLength="50" TextMode="Password"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="rfvNewPassword" runat="server" ControlToValidate="txtNewPassword"
                                        ErrorMessage="New password is required." ToolTip="New password is required."
                                        ValidationGroup="ChangePassword" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <%=GetLocaleResourceString("Account.NewPasswordConfirmation")%>:
                                </td>
                                <td>
                                    <asp:TextBox ID="txtConfirmPassword" runat="server" TextMode="Password"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="rfvConfirmPassword" runat="server" ControlToValidate="txtConfirmPassword"
                                        ErrorMessage="Confirm password is required." ToolTip="Confirm password is required."
                                        ValidationGroup="ChangePassword" />
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <asp:CompareValidator ID="cvPasswordCompare" runat="server" ControlToCompare="txtNewPassword"
                                        ControlToValidate="txtConfirmPassword" Display="Dynamic" ErrorMessage="Entered passwords do not match"
                                        ValidationGroup="ChangePassword" />
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
        </tbody>
    </table>
    <table cellspacing="0" cellpadding="0" border="0">
        <tbody>
            <tr>
                <td>
                    <img height="10" width="100%" border="0" src="<%=Page.ResolveUrl("~/images/trans.gif")%>" />
                </td>
            </tr>
        </tbody>
    </table>
    <table width="100%" cellspacing="0" cellpadding="2" border="0">
        <tbody>
            <tr>
                <td>
                    <asp:Button ID="btnChangePassword" runat="server" OnClick="btnChangePassword_Click"
                        Text="Change password" ValidationGroup="ChangePassword" /><br style="line-height: 1px;" />
                </td>
            </tr>
        </tbody>
    </table>
</div>
